package com.fiberhome.app.network.socket;

import java.net.DatagramPacket;

/**
 * Created by Deed on 2018/1/29.
 */

public class DefaultUdpPacket implements UdpPacket {

    @Override
    public String sendData(String data) {
        return data;
    }

    @Override
    public String getResult(DatagramPacket receivePacket) {
        return new String(receivePacket.getData(), 0, receivePacket.getLength()).trim();
    }
}
